package com.winit.schedule.core.protocol.command;

import java.util.ArrayList;
import java.util.List;

import com.winit.schedule.core.model.AssignedTask;
import com.winit.schedule.core.model.TaskID;
import com.winit.schedule.core.protocol.AbstractCommandBody;
import com.winit.schedule.core.repository.entity.QuartzJobEntity;
import com.winit.schedule.core.repository.entity.QuartzSchedulerEntity;

public class HeartbeatResponse extends AbstractCommandBody {

    List<AssignedTask>          tasks;

    List<TaskID>                stopTaskIds;

    /**
     * 为兼容1.1.0版本，设置默认值
     */
    List<QuartzJobEntity>       jobCmds = new ArrayList<QuartzJobEntity>(0);

    /**
     * 为兼容1.1.0版本，设置默认值
     */
    List<QuartzSchedulerEntity> schedulerCmds = new ArrayList<QuartzSchedulerEntity>(0);

    public HeartbeatResponse(){

    }

    public List<AssignedTask> getTasks() {
        return tasks;
    }

    public void setTasks(List<AssignedTask> tasks) {
        this.tasks = tasks;
    }

    public List<TaskID> getStopTaskIds() {
        return stopTaskIds;
    }

    public void setStopTaskIds(List<TaskID> stopTaskIds) {
        this.stopTaskIds = stopTaskIds;
    }

    public List<QuartzJobEntity> getJobCmds() {
        return jobCmds;
    }

    public void setJobCmds(List<QuartzJobEntity> jobCmds) {
        this.jobCmds = jobCmds;
    }

    public List<QuartzSchedulerEntity> getSchedulerCmds() {
        return schedulerCmds;
    }

    public void setSchedulerCmds(List<QuartzSchedulerEntity> schedulerCmds) {
        this.schedulerCmds = schedulerCmds;
    }

}
